package com.example.finalassignment.service;

import com.example.finalassignment.pojo.response.ResultDataResponse;
import com.example.finalassignment.pojo.response.ResultResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface FilesService {
    /**
     * 上传文件与视频
     * @param file
     * @return
     * @throws IOException
     */
    public ResultResponse upload(MultipartFile file) throws IOException;

    /**
     * 获取uuid 对应的文件地址
     * @param uuid
     * @return
     */
    public String[] getFileAddress(String uuid);

}
